package com.jn.exam.paperConsumer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 考试与学生联系表
 * </p>
 *
 * @author 江南大学1033190417
 * @since 2022-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("exam_student_connection")
@ApiModel(value="StudentConnection对象", description="考试与学生联系表")
public class StudentConnection implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "考试id")
    @TableId(value = "exam_id", type = IdType.ID_WORKER_STR)
    private String examId;

    @ApiModelProperty(value = "学生id")
    private String studentId;

    @ApiModelProperty(value = "考试得分")
    private Float progress;

    @ApiModelProperty(value = "是否存在作弊，默认未作弊")
    private Boolean isCheated;

    @ApiModelProperty(value = "是否已阅卷，-1：未阅卷，0：正在，1：结束")
    private Integer isMarked;

    @ApiModelProperty(value = "是否已参加考试，-1：未参加，0：正在考试，1：已考完")
    private Integer isAttended;

    @ApiModelProperty("考试总分")
    private Float totalScore;
}
